<template>
    <ul>
        <li v-for='(item,index) in arr' :key = 'index'>
            {{item}}
        </li>
        <button @click="butFn">走一走</button>
    </ul>
</template>

<script>
export default {
    data () {
        return {
            arr:['程序员','美女','帅哥']
        }
    },
    methods: {
        butFn() {
            this.arr.push(this.arr[0])
            this.arr.splice(0,1)
        }
    }
}
</script>

<style>

</style>